//
//  ALNetWork.swift
//  Swift01
//
//  Created by Miaoyang on 16/4/11.
//  Copyright © 2016年 Miaoyang. All rights reserved.
//

import UIKit
import AFNetworking

class ALNetWorkTool: AFHTTPSessionManager {
    //单利
    static let sharedInstance:ALNetWorkTool = {
        
        let tool = ALNetWorkTool()
        //set是无序的,元素不会存在重复
        tool.responseSerializer.acceptableContentTypes?.insert("text/plain")
        
        return tool
       
    }()
    
    

}
